package com.guoning.office_system.mapper;

import com.guoning.office_system.model.Meeting;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("MeetingMapper")
public interface MeetingMapper {
    Long selectByUserCount(Criteria criteria);

    List selectByUser(Criteria criteria);

    Long selectByRecordCount(Criteria criteria);

    List selectByRecord(Criteria criteria);

    List selectByRecordAllUser(Criteria criteria);

    int deleteByRecordId(List<Long> list);

    int deleteByUserIdAndRecordId(Criteria criteria);

    int insert(List<Meeting> list);

    int deleteByPrimaryKey(Long id);

    int insertSelective(Meeting record);

    Meeting selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Meeting record);

    int updateByPrimaryKey(Meeting record);
}